package com.yxw.live_vod_boot.dto.live_comment;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;


@Data
@ApiModel(value="LiveInteractiveDataQueryDTO", description="直播结束后获取互动数据查询DTO")
public class LiveInteractiveDataQueryDTO implements Serializable {

    @ApiModelProperty(value = "直播ID", required = true)
    @NotNull(message = "直播ID不能为空")
    private String liveId;

    @ApiModelProperty(value = "店铺ID", required = true)
    @NotNull(message = "店铺ID不能为空")
    private Long shopId;

    @ApiModelProperty(value = "直播开始时间", required = true)
    @NotNull(message = "直播开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date liveStartTime;

    @ApiModelProperty(value = "直播结束时间", required = true)
    @NotNull(message = "直播结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date liveEndTime;
}
